# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2021年12月04日
"""
import pandas as pd

df1 = pd.DataFrame({"A": ['mrA01', 'mrA02'],
                    'B': ['mrB01', 'mrB02'],
                    'C': ['mrC01', 'mrC02'],
                    'D': ['mrD01', 'mrD02']})
df2 = pd.DataFrame({"A": ['mrA03', 'mrA04', 'mrA05', 'mrA06'],
                    'B': ['mrB03', 'mrB04', 'mrB05', 'mrB06'],
                    'C': ['mrC03', 'mrC04', 'mrC05', 'mrC06'],
                    'D': ['mrD03', 'mrD04', 'mrD05', 'mrD06']})
df3 = pd.DataFrame({"A": ['mrA07', 'mrA08', 'mrA09', 'mrA10'],
                    'B': ['mrB07', 'mrB08', 'mrB09', 'mrB10'],
                    'C': ['mrC07', 'mrC08', 'mrC09', 'mrC10'],
                    'D': ['mrD07', 'mrD08', 'mrD09', 'mrD10']})
dfs = [df1, df2, df3]
# result = pd.concat(dfs)
result = pd.concat(dfs, keys=['1月', '2月', '3月'])
print(result)

